package boddaert.philippe.cashGame;

public enum GameConfigurationCurrencyType {
	EURO("euro"), POINT("point");

	private final String value;

	GameConfigurationCurrencyType(String value) {
		this.value = value;
	}

	public String value() {
		return this.value;
	}

	public static GameConfigurationCurrencyType get(String key) {
		for (GameConfigurationCurrencyType type : values()) {
			if (type.value.equals(key))
				return type;
		}
		return null;
	}
}